package com.mediastory.spsserver.gcm.service;

import java.util.List;
import java.util.Map;

import com.mediastory.spsserver.gcm.domain.Gcm;

/**
 * Gcm Svc
 * @author Jaewon Choi
 *
 */

public interface GcmSvc {
	
	public List<Gcm> findbyList(Map<String, Object> condition) throws Exception;

	public Map<String, Object> findbyListPaging(Map<String, Object> condition) throws Exception;
	
	public Gcm findby(Integer idx) throws Exception;
	
	public Gcm add(Gcm gcm) throws Exception;
	
	public Gcm modify(Gcm gcm) throws Exception;
	
	public int remove(Map<String, Object> condition) throws Exception;
	
	//GCM DATA
	public List<Map<String, Object>> findbyListData(Map<String, Object> condition) throws Exception;

	//GCM DEVICE
	public Object findbyListDevice(Map<String, Object> condition) throws Exception;
	
	public int addDevice(Map<String, Object> condition) throws Exception;
	
	public int removeDevice(Map<String, Object> condition) throws Exception;
	
	//GCM SEND
	public List<Gcm> sendMsg(Gcm gcmObj, boolean scheduleFlag) throws Exception;

}